package org.dormnet.dao.mapping;

import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.Date;

import org.dormnet.dao.bean.Message;

public class MessageMapping implements BeanMapping{
	public Object mapping(ResultSet resultSet) throws SQLException {
		Message message = new Message();
		message.setContent(resultSet.getString("content"));
		message.setIsdeleted(resultSet.getInt("isdeleted"));
		message.setMid(resultSet.getInt("mid"));
		message.setLeaver(resultSet.getString("leaver"));
		message.setSpecific(resultSet.getString("Specific"));
		message.setMtime(resultSet.getDate("mtime"));
		message.setTodorm(resultSet.getInt("todorm"));
		message.setMtype(resultSet.getInt("mtype"));
		return message;
	}

}
